
#include <QApplication>
#include <QTranslator>
#include <QLocale>
#include <QMessageBox>

#include "mainwindow.h"

int main(int argc, char *argv[])
{
	QApplication application(argc, argv);

	QString locale = QLocale::system().name();
	QTranslator translator;
	translator.load(QString("s3dict_") + locale);
	application.installTranslator(&translator);
	try {
		MainWindow mainWidget;
		mainWidget.showMaximized();
		return application.exec();
	}
	catch(QString ex) {
		QMessageBox::critical(0, "Error", ex);
		return 0;
	}
}

